﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ControlExplorer
{
    public partial class DataAnalysis : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnStatisticsByDepart_Click(object sender, EventArgs e)
        {
            GrapeCity.ActiveReports.PageReport pReport = new GrapeCity.ActiveReports.PageReport(new System.IO.FileInfo(Server.MapPath("Reports\\StatisticsByDepart.rdlx")));
            WebViewer1.Report = pReport;
        }

        protected void btnChart_Click(object sender, EventArgs e)
        {
            GrapeCity.ActiveReports.PageReport pReport = new GrapeCity.ActiveReports.PageReport(new System.IO.FileInfo(Server.MapPath("Reports\\ChartByDepart.rdlx")));
            WebViewer1.Report = pReport;
        }
    }
}